<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
$return=array();
if($_RQ['op']=='get'){
	if(!$_SESSION['isfounder']){
		//判断是否有权限使用微信公众号功能
		$return['no_wechat']=!check_permission('core','wechat.list');
		$return['no_wxapp']=!check_permission('core','wxapp.list');
		$return['no_mobile_web']=!check_permission('core','website.mobile_web');
		$return['no_pc_web']=!check_permission('core','website.pc_web');
		$return['no_app']=!check_permission('core','app.list');
		$return['no_xiu']=!check_permission('jy_xiu');
		$return['no_h5game']=!check_permission('jy_h5game');
		$return['no_wxgame']=!check_permission('jy_wxgame');
	}
	if(!pdo_getcolumn('core_plugins',array('name'=>'jy_wxgame'),'id')){
		$return['no_wxgame']=true;
	}
	if(!pdo_getcolumn('core_plugins',array('name'=>'jy_h5game'),'id')){
		$return['jy_h5game']=true;
	}
	if(!pdo_getcolumn('core_plugins',array('name'=>'jy_xiu'),'id')){
		$return['jy_xiu']=true;
	}
	$site=pdo_get('core_accounts',array('uniacid'=>$_SESSION['uniacid']),array('title','logo','desc','ewm','credit2','groupid','opendiys'));
	$applist=array(
			array('name'=>'core','id'=>'wechat','title'=>'四合一公众号','desc'=>'一键DIY制作小程序','icon'=>'fa-weixin','color'=>'#63BE72','action'=>'/wechat.list/list/','openaction'=>'/account.siteinfo/group_item/','price'=>$app_prices['wechat']),
			array('name'=>'core','id'=>'wxapp','title'=>'微信小程序','desc'=>'一键DIY制作小程序','icon'=>'fa-jsfiddle','color'=>'#4491F1','action'=>'/wxapp.list/get/type=8','openaction'=>'/account.siteinfo/group_item/','price'=>$app_prices['wxapp']),
			array('name'=>'core','id'=>'ttapp','title'=>'头条/抖音小程序','desc'=>'引爆抖音流量王','icon'=>'fa-pinterest','color'=>'#FF547B','action'=>'/wxapp.list/get/type=8','openaction'=>'/account.siteinfo/group_item/','price'=>$app_prices['ttapp']),
			array('name'=>'core','id'=>'aliapp','title'=>'支付宝小程序','desc'=>'依托天猫/淘宝变现','icon'=>'fa-facebook-square','color'=>'#4491F1','action'=>'/wxapp.list/get/type=8','openaction'=>'/account.siteinfo/group_item/','price'=>$app_prices['aliapp']),
			array('name'=>'core','id'=>'baiduapp','title'=>'百度小程序','desc'=>'搜索SEO内容王','icon'=>'fa-behance-square','color'=>'#7783EA','action'=>'/wxapp.list/get/type=8','openaction'=>'/account.siteinfo/group_item/','price'=>$app_prices['baiduapp']),
			array('name'=>'core','id'=>'qqapp','title'=>'QQ小程序','desc'=>'个性QQ轻应用','icon'=>'fa-qq','color'=>'#FF4444','action'=>'/wxapp.list/get/type=8','openaction'=>'/account.siteinfo/group_item/','price'=>$app_prices['qqapp']),
			array('name'=>'core','id'=>'mobile','title'=>'H5微官网','desc'=>'一键DIY制作微官网','icon'=>'fa-mobile','color'=>'#63BE72','action'=>'/website.mobile_web/list/','openaction'=>'/account.siteinfo/group_item/','price'=>$app_prices['mobile']),
			array('name'=>'core','id'=>'pc','title'=>'PC官网建站','desc'=>'一键DIY制作PC网','icon'=>'fa-windows','color'=>'#FCC600','action'=>'website.pc_web/','openaction'=>'/account.siteinfo/group_item/','price'=>$app_prices['pc']),
			array('name'=>'core','id'=>'xiu','title'=>'微场景','desc'=>'一键DIY制作场景宣传单','icon'=>'fa-dropbox','color'=>'#C3A769','action'=>'jy_xiu/list/','openaction'=>'/account.siteinfo/group_item/','price'=>$app_prices['xiu']),
			array('name'=>'core','id'=>'h5game','title'=>'互动营销','desc'=>'一键创建H5营销活动','icon'=>'fa-google-plus','color'=>'#FF547B','action'=>'jy_h5game/index/','openaction'=>'/account.siteinfo/group_item/','price'=>$app_prices['h5game']),			
	);
	if($_AR['system']['no_app']!=1){
		$applist[]=array('name'=>'core','id'=>'webapp','title'=>'APP生成','desc'=>'一键生成APP，就是这么简单！','icon'=>'fa-apple','color'=>'#FF547B','action'=>'core/app.list/list/','openaction'=>'/account.siteinfo/group_item/','price'=>$app_prices['webapp']);
	}
	foreach($applist as &$item){
			if(strpos($site['opendiys'],';'.$item['id'].';') !== false || $item['id']=='wechat' || $item['id']=='mobile' || $item['id']=='webapp'){
				$item['isclosed']=false;
			}else{
				if(!$_SESSION['isfounder']){
					$item['isclosed']=true;
				}
			}
	}
	$return['htmls']=array(
			array('type'=>'tip','title'=>'
			所有平台服务属于<em>同一站点</em>旗下，不同的平台，无需关联，统一调用站点数据；所有平台服务，相互协调，相互对接，共同打造强大站点</br>
			[不同产品服务]：</br>
			1、四合一公众号（微信+头条号+支付宝生活号+百度熊掌）；</br>
			2、<em>六合一小程序</em>（微信/头条/抖音/支付宝/QQ轻应用/百度）</br>
			3、互动营销：<em>全网打通</em>营销活动，其他应用可以自由发起，调用营销活动。
			','name'=>'title'),
			array('type'=>'data','tpltype'=>8,'title'=>'常用应用端/平台服务_Commonly used products','datas'=>$applist),
	);
	set_html('title','应用前端');
	exi($return);
}

?>